using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;

namespace GoodStuff
{
    public class GoodButton
    {
        public event EventHandler click;

        Button _control;

        public void Initialize()
        {
            base.Initialize();
            Trace.WriteLine("Initializing GoodButton ");
            _control = new Button();
            _control.AutoSize = true;
            _control.Text = ParameterText("Text");
            _control.Click += ClickHandler;
        }

        protected void ClickHandler(object sender, EventArgs args)
        {
            Dictionary<string, object> clickArgs;
            clickArgs.Add("Time", Environment.TickCount);
            click(this, clickArgs);
        }
    }
}
